package com.hdax.dm.constants;

import lombok.Getter;

@Getter
public enum ResultEnumCode {

    LOGIN_PHONE_ERR("1001","账号不存在"),
    LOGIN_PASSWORD_ERR("1002","密码不正确"),
    LOGIN_MSG_ERROR("1003","手机号格式不正确"),
    LOGIN_EXISTS_VCODE_ERROR("1004","60秒内只能发送一次验证码"),
    LOGIN_NOT_EXISTS_VCODE_ERROR("1005","验证码已经失效，请重新获取"),
    TOKEN_EXPIRE_ERROR("1401","token已过期"),
    REDIS_TOKEN_EXPIRE_ERROR("1402","缓存token已过期"),
    TOKEN_INVALID("1403","无效token"),
    NEED_RELOGIN("9999","登录状态已过期，需要重新登录"),

    ITEM_NOT_EXISTS_ERR("2001", "商品不存在"),

    USER_INVALID("1006","获取用户信息有误"),

    ORDER_INFO_INVALID("4001","订单信息有误"),

    ORDER_LINK_USER_NOT_EXISTS_ERROR("1007","订单联系人不存在"),

    SEAT_HAS_BEEN_SALED_ERR("3001","座位已出售，无法售卖");



    private String errorCode;
    private String message;

    ResultEnumCode(String errorCode, String message){
        this.errorCode = errorCode;
        this.message = message;
    }
}
